#!/bin/sh
############################
# auther	: sgxiao
# date		: 2009-01-18
# filename	: average_return.sh
# version	: 0.1
# history
# sgxiao	0.1	build up
#
############################


for year in 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007
do
for group in 01 02 03 04 05 06 07 08 09 10
do
######

for file in 1_50 1_150 1_200 2_200 5_150 10_200
do
#####
	echo "${year}_${group}.${file}.average.return"
	java AverageCaculator ${year}_${group}.top50 ${file} > ${year}_${group}.${file}.average.return
	awk -f recaculate.awk ${year}_${group}.${file}.average.return > ${year}_${group}.${file}.final.average.return

#####
done




######
done
done

#./recaculate.sh


#mv total* ../
#rm *.whole.return
#mv *.whole.return ../
#mv *.array.top50 ../
